<?php
/**
 * Created by PhpStorm.
 * User: robot
 * Date: 2018-04-26
 * Time: 16:33
 */

namespace app\base\model;


use think\Model;

class User extends Model
{
    public function getUsertypeAttr($value)
    {
        $status=[0=>'普通用户',1=>'系统管理员'];
        return $status[$value];
    }
}